<?php foreach($videos as $video){ ?>
	<div class="f_list_item video">
		<a class="f_list_video" href="<?php echo Yii::app()->createUrl('video/view', array('id'=>$video->id));?>">
			<img width="180" height="143" border="0" alt="" src="<?php echo VideoPreview::getVideoPreview($video->video->code); ?>">
			<div class="play"></div>
			<div class="mask"></div>
		</a>
		<div class="f_list_txt no_l">
			<div class="">
				<a href="<?php echo Yii::app()->createUrl('video/view', array('id'=>$video->id));?>" class="u_media_nav_name"><?php echo $video->name?></a>
			</div>
			<div class="f_list_data">
				<p>Завантажено <?php echo Yii::app()->dateFormatter->formatDateTime($video->crdate, 'long','short'); ?></p>
			</div>			
		</div>
	</div>	
<?php } ?>
<?php if((count($videos) == $limit)){ ?>
	<div class="ovh">
		<div class="c">
			<div class="more_btn cc more_search" rel="<?php echo Yii::app()->createAbsoluteUrl("search/getvideos", array('offset'=>$offset, 'limit'=> $limit)); ?>">Показать больше</div>
		</div>
	</div>
<?php } ?>